package com.number.app.event;

import java.io.Serializable;

public class MainDefault implements Serializable {

    private static final long serialVersionUID = 8845993604870617548L;

    public static void main(String[] args) {

        UsrSource usrSource = new UsrSource();

        UsrListener1 ul1 = new UsrListener1();
        UsrListener2 ul2 = new UsrListener2();
        UsrListener3 ul3 = new UsrListener3();

        usrSource.addUsrListener(ul1);
        usrSource.addUsrListener(ul2);
        usrSource.addUsrListener(ul3);

        System.out.println("MainDefault:" + "start");
        usrSource.notifyUsrEvent();

        System.out.println("MainDefault:" + "end");

    }

}
